package tech.anzhen.simple.rpc.support.runtime;

import java.util.Date;

public class DateRange {

    private long start;

    private long end;

    public DateRange(long start, long end) {
        this.start = start;
        this.end = end;
    }

    public DateRange(Date start, Date end) {
        this.start = start.getTime();
        this.end = end.getTime();
    }

    public Date getStart() {
        return new Date(start);
    }

    public Date getEnd() {
        return new Date(end);
    }

    public long getStartTime() {
        return start;
    }

    public long getEndTime() {
        return end;
    }
}
